﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace UberChess.Menu
{
   public partial class Menu : Form
   {
      private Game1 game;
      public Menu(Game1 game)
      {
         InitializeComponent();
         this.game = game;
         this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
         this.TopMost = false;
      }



      private void button_exitGame_click(object sender, EventArgs e)
      {
         if (MessageBox.Show("Sure you want to Exit UberChess?", "Exit UberChess", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning) == System.Windows.Forms.DialogResult.Yes)
         {
            game.Exit();
         }

      }

      private void button_newGame_Click(object sender, EventArgs e)
      {
         if (MessageBox.Show("Sure you want to start over?", "New Game", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning) == System.Windows.Forms.DialogResult.Yes)
         {
            game.gameState = Game1.GameState.TitleScreenWhite;
            this.Close();
         }




      }
   }
}
